#!/bin/bash

WORK_PATH='./'
DEBUG=false

while getopts w:hd OPTION; do
    case $OPTION in
    w)WORK_PATH=$OPTARG
	    ;;
	d)DEBUG=true
	    ;;
    \?)echo "`autobuilder.sh $0` -[w work_path]"
    ;;
    esac
done

cd src
python startup.py --workpath=${WORK_PATH} --debug=${DEBUG}
cd ..
